package com.michael.study.arouter.activity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.michael.study.arouter.R;
import com.michael.study.arouter.RoutePath;

@Route(path = RoutePath.TEST_ACTIVITY_1, name = "测试用 Activity")
public class TestActivity1 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test1);
        Log.d("lgq", "onCreate: " + getIntent().getStringExtra("name"));
    }

    @Override
    public void onBackPressed() {
        setResult(Activity.RESULT_OK);
        super.onBackPressed();
    }
}
